package top.melody.ecommerce.platform.dal.account;

import org.apache.ibatis.annotations.Param;
import top.melody.ecommerce.common.util.page.Pagination;
import top.melody.ecommerce.platform.api.domain.account.Account;

import java.util.List;

/**
* @author: melody
* @groupId:rd
* @createdate:2016-10-18
* @mail: blentle.huan.ren@gmail.com
* @description:
* @since: 1.0
*/
public interface AccountMapper {

    List<Account> queryByPage(@Param("account")Account account, @Param("startRowIdx")Integer startRowIdx,@Param("pageSize")Integer pageSize);

    Integer getCount(Account record);

    Account get(int accountId);

    Account getByUserId(String userId);

    Account getByMobile(String mobile);

    Account getByEmail(String email);

    Account getByScreenName(String screenName);

    Integer insert(Account record);

    Integer insertSelective(Account record);

    Integer delete(Account record);

    Integer deleteByPrimaryKey(Object key);

    Integer updateByPrimaryKey(Account record);

    Integer updateByPrimaryKeySelective(Account record);

    Account get(Integer accountId);
}